package shape;

import static org.junit.Assert.assertEquals;

import java.awt.Color;

import org.junit.Test;

public class DecoratorTest {
	
	@Test
	public void testShapeColourDecorator() {
		Shape shape = new Square(10, 10, 10);
		shape = ShapeColourDecorator.decorate(shape, Color.black);
		
		assertEquals(10, shape.getSize());
		assertEquals(10, shape.getX());
		assertEquals(10, shape.getY());
	}
}
